name$<%=username%>
password:$<%=password%>
<%=prompt%>$en
#$config
#$interface gpon <%=F%>/<%=S%>
#$ont add <%=P%> <%=ONUindex%> sn-auth <%=SN%> omci ont-lineprofile-name <%=lineProfile%> ont-srvprofile-name <%=srvProfile%> desc <%=name%>$BREAK
#|:$ENTER$BREAK
#$ont ipconfig <%=P%> <%=ONUindex%> ip-index 1 dhcp vlan <%=acsVlan%>
:$ENTER
#$ont tr069-server-config <%=P%> <%=ONUindex%> profile-name tr069
#$quit
<% let index = 1;-%>
<% for(let i=0;index<7&&index>0&&i<arr.length;i++){ -%>
<% let item = arr[i]-%>
<% if(item.isSpeedLimit){-%>
#$service-port vlan <%=item.gVLAN%> gpon <%=PONindex%> ont <%=ONUindex%> gemport <%=index%> multi-service user-vlan <%=item.gVLAN%> inbound traffic-table index <%=item.DownSpeed%> outbound traffic-table index <%=item.UplinkSpeed%>$BREAK
<%}else{-%>
#$service-port vlan <%=item.gVLAN%> gpon <%=PONindex%> ont <%=ONUindex%> gemport <%=index%> multi-service user-vlan <%=item.gVLAN%>
<%}-%>
<% index++;-%>
<%} -%>
#$quit
#$quit
y/n$y   